<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="../static/css/drag.css">
    <link rel="stylesheet" href="../myStatic/css/myDrag.css">
    <script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
    <script src="../static/js/drag.js"></script>
</head>
<body>
      <div class="div1"></div>
      <div class="div2"></div>
      <div class="div3"></div>
</body>
<script>
    $(".div1").drag({
        maxSizeX:500,
        minSizeX:100,
        moveType:"lr"

    });
    $(".div2").drag({
        maxSizeY:400,
        minSizeY:50,
        moveType:"up",
        isPercent:true,
        endFn:function (ele) {
            console.log(ele)
        }
    });
    $(".div3").drag({
        maxSizeX:1200,
        minSizeX:30,
        maxSizeY:400,
        minSizeY:50
    });



</script>
</html>